package util {
    import flash.events.TextEvent;
    import flash.text.TextField;
    import flash.text.TextFormat;
    
    import org.aswing.DefaultListCell;
    import org.aswing.JLabel;
    import org.aswing.LoadIcon;
    import org.aswing.plaf.basic.BasicLabelUI;

    public class ItemListCell extends DefaultHtmlListCell {
        public function ItemListCell() {
            super();
        }
        public override function setCellValue(value:*):void {
//            super.setCellValue(value);
            var label:JHtmlLabel = getJLabel();
            label.setHtmlText('<a target="_blank" href="' + value.url + '">' + '<u>' + value.anchor + '</u>' + '</a>');
            trace('IconListCell >' + value.picture);
            label.setIcon(new LoadIcon(value.picture, 16, 16, true));
            label.setToolTipText(value.snippet);
        }

    }
}
